package Arrays101.Test;

public class Test03 {
    public static void main(String[] args) {
        String s1="ab";
        String a="a";
        String b="b";

        String s2=a+b;
        String s3="a"+"b";
        String s4="a"+new String("b");
        System.out.println(s1==s2);//false
        System.out.println(s1==s3);//true
        System.out.println(s1==s4);//false
        System.out.println(s2==s4);//false

    }
}
